cd /usr/local
yum install gcc
wget http://download.redis.io/releases/redis-5.0.4.tar.gz
tar xzf redis-5.0.4.tar.gz
cd redis-5.0.4
make
vim redis.custom.conf
daemonize yes
port
requirepass
databases 256
logfile ./redislog.log
dir ./
bind 0.0.0.0
save 60 1
save 3600 100
dbfilename dbdump-6666.rdb
dir ./
stop-writes-on-bgsave-error yes
rdbcompression yes
rdbchecksum yes
appendonly yes
appendfilename aof-6666.aof
appendfsync everysec
no-appendfsync-on-rewrite yes
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 64mb
masterauth password
slaveof ip port
slave-read-only yes
./src/redis-server redis.custom.conf
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。